﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Macad.Core.Shapes;
using Macad.Core.Topology;
using Macad.Interaction;
using Macad.Occt;

namespace SpCad.Tools
{
    public class TestDrw3d
    {
        public static void AddText(string text)
        {
            AIS_TextLabel textLabel = new AIS_TextLabel();
            TCollection_ExtendedString tostr = new TCollection_ExtendedString(text); 
            textLabel.SetText(tostr);
            textLabel.SetPosition(new Pnt(0, 0, 0));
            textLabel.SetHeight(0.5);
            textLabel.SetWidth(0.5);
            textLabel.SetAngle(0);
            textLabel.SetFont("SimHei");
            // SpServer.Instance.Current.Document.Add(); 
            SpServer.Instance.WorkspaceController.Workspace.AisContext.Display(textLabel, false);

        }
    }
}
